-- Decompiled with the Synapse X Luau decompiler.
local server = _G.server;
local ServerOHOH = _G.ServerOHOH;
local CommonOHOH = _G.CommonOHOH;
local ConnectClass=CommonOHOH.load.Connect();

local M = ServerOHOH.class.new(script, ServerOHOH.files.CharacterObject());

local ColliderGroup = ServerOHOH.load.ColliderGroup();
local ColliderManager = ServerOHOH.load.ColliderManager();


function M.new(self, character)
	return M(self, character);
end;

function M.ctor(self, character, player)
	M.super.ctor(self, character);
	self.player = player;
	ColliderManager:SetAllGroup(self.main_inst, ColliderGroup.character);
end;


function M.OnDead(self)
	-- print("------------>服务器死亡---")
	task.wait(1)
	self.player.DieEvent:Action()
	self.player.main_inst:LoadCharacter()
end;


function M.dtor(self)
	M.super.dtor(self);
end;



return M;
